home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Audio-DSP / NU / Source / Glyph.h < prev    next >
Encoding:
Text File  |  1992-12-25  |  2.4 KB  |  94 lines

  1.   #import <objc/Object.h>
  2.   #import <appkit/graphics.h>
  3.   struct gFlags
  4.   { unsigned isTerminator: 1 ; // MUST be first!
  5.   unsigned isRoot: 1 ;
  6.   unsigned isTarget: 1 ;
  7.   unsigned isFrozen: 1 ;
  8.   unsigned isTray: 1 ;
  9.   unsigned noDraw: 1 ;
  10.   unsigned playing: 1 ;
  11.   unsigned waiting: 1;
  12.   unsigned depth: 6 ;
  13.   unsigned user1: 1 ;
  14.   unsigned user2: 1 ;
  15.   } ;
  16. @interface Glyph: Object
  17. { @public
  18.   struct gFlags flags ; // MUST be first!
  19.   NXRect frame ;
  20.   NXPoint hotSpot ;
  21.   NXSize  scale ;
  22.   Glyph *is, *then, *ancestor ;
  23.   Glyph *isAux, *thenAux ;
  24. }
  25. + draw: (NXSize *) scale ;
  26. - addClassToListIfAbsent: aList ;
  27. - ancestor ;
  28. - ancestor: aGlyph ;
  29. - auxAncestorOf: aGlyph ;
  30. - basicFree ;
  31. - becomeTarget ;
  32. - calcDepth ;
  33. - calcAuxDepth ;
  34. -clone ;
  35. - cloneAux: aGlyph ;
  36. -convertFromAncestor: (NXPoint *) aPnt ;
  37. - convert: (NXPoint *) aPnt fromGlyph: aGlyph ;
  38. - convert: (NXPoint *) aPnt toGlyph: aGlyph ;
  39. -convertFromRootGlyph: (NXPoint *) aPnt ;
  40. -convertToAncestor: (NXPoint *) aPnt ;
  41. -convertToRootGlyph: (NXPoint *) aPnt ;
  42. - didResize: sender ;
  43. - die ;
  44. - display: (const NXRect *) aRect ;
  45. - displayRaisedPass1: (id *)image size: (NXSize *) aSize ;
  46. - displayRaisedPass2: (id *)image ;
  47. - doesNotRecognize: (SEL) aSelector ;
  48. - draw: (NXSize *) scale ;
  49. - drawSelf: (NXRect *) aRect ;
  50. - enclose ;
  51. - enlist: (Glyph *) aGlyt ;
  52. - free ;
  53. - freeze: (BOOL) state ;
  54. - getFrame: (NXRect *) aRect ;
  55. - getHotSpot: (NXPoint *) aPnt ;
  56. - getScale: (NXSize *) aSize ;
  57. - hitTest: (NXPoint *) aPnt ;
  58. - init: (float) width :(float) height ;
  59. - is ;
  60. - is: aGlyph ;
  61. - (BOOL) isLinked ;
  62. - (BOOL) isTerminator ;
  63. - mouseDown: (NXEvent *) anEvent ;
  64. - mouseDragged: (NXEvent *) anEvent ;
  65. - mouseUp: (NXEvent *) anEvent ;
  66. - moveTo:(float) x :(float)y ;
  67. - moveHotSpotTo:(float) x :(float)y ;
  68. - moveHotSpotTo: (NXPoint *) aPoint ofGlyph: aGlyph ;
  69. - moveOriginTo: (NXPoint *) aPoint ofGlyph: aGlyph ;
  70. - plant: (Glyph *) aGlyt ;
  71. - (BOOL) play ;
  72. - precursor ;
  73. - (BOOL) precedes: (Glyph *) aGlyph ;
  74. - printTTree ;
  75. - printAuxTTree: (int) depth ;
  76. - propogate: (char *) aCommand from: (Glyph *) aGlyph ;
  77. -resignTarget ;
  78. - resizeBy: (double) w :(double) h pile: (BOOL) pile ;
  79. - rightMouseDown: (NXEvent *) anEvent ;
  80. - scan ;
  81. - sizeTo: (float)width : (float)height ;
  82. - then ;
  83. - then: aGlyph ;
  84. - tick ;
  85. - unlink ;
  86. - (BOOL) wait ;
  87. - wasMoved ;
  88. - wasPlanted: aGlyph ;
  89. - wasPlantedAux: aGlyph ;
  90. - wasReceivedBy: (id) aGlyphView ;
  91. -read: (NXTypedStream *) stream ;
  92. -write: (NXTypedStream *) stream ;
  93. @end
  94.